package com.house.keeper.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.house.keeper.entity.Role;
import com.house.keeper.mapper.RoleMapper;
import com.house.keeper.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zjj
 * @date 2022-05-16
 */
@Service
public class RoleServiceImple implements RoleService {
    @Autowired
    private RoleMapper roleMapper;
    /**
     * 查询所有的角色
     *
     * @return
     */
    @Override
    public List<Role> selectAll() {
        QueryWrapper<Role> queryWrapper = new QueryWrapper<>();
        return roleMapper.selectList(queryWrapper);
    }
}
